package util;

/**
 * Created by weichyang on 2014/9/9.
 */
public class Image2Sdcard {

    /*

    class DownAsy extends AsyncTask<String, String, Boolean> {
        Bitmap bitmap;

        // 进行中
        @Override
        protected Boolean doInBackground(String... arg0) {
            String url = arg0[0];
            bitmap = returnBitMap(url);
            if (bitmap != null) {
                return true;
            }
            return false;
        }

        // 结束
        @Override
        protected void onPostExecute(Boolean result) {
            if (result) {
                Message message = new Message();
                message.what = 1;
                message.obj = bitmap;
                handler.sendMessage(message);
            }
            super.onPostExecute(result);
        }

        // 开始
        @Override
        protected void onPreExecute() {
            Message message = new Message();
            message.what = 0;
            handler.sendMessage(message);
            super.onPreExecute();
        }
    }*/

}
